package org.amphiprion.descentv2assistant.ui.views;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.HorizontalScrollView;

public class MyHorizontalScrollView extends HorizontalScrollView {
	public MyHorizontalScrollView(Context paramContext,
			AttributeSet paramAttributeSet) {
		super(paramContext, paramAttributeSet);
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent paramMotionEvent) {
		return true;
	}

	@Override
	public boolean onTouchEvent(MotionEvent paramMotionEvent) {
		if ((paramMotionEvent.getAction() == 2) && (getParent() != null)) {
			getParent().requestDisallowInterceptTouchEvent(true);
		}
		return super.onTouchEvent(paramMotionEvent);
	}
}